package com.springboot.listener;

import com.springboot.enums.QueueEnum;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "user.register.queue")
public class UserListener {


    @RabbitHandler
    public void execute(Long userId) {
        System.out.println("用户：" + userId + " 完成注册。");
    }
}
